package com.maybach.core.ao.impl;

import com.maybach.core.ao.FlowAO;
import com.maybach.workflow.common.api.IFlowEngine;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * Created by houenxun on 16/1/25.
 *
 */
@Component
public class FlowAOImpl implements FlowAO {
    @Autowired
    protected IFlowEngine flowEngine;

    public boolean isAllow(Long taskId){
        return flowEngine.isTaskAllow(taskId);
    }
}
